package com.geekteam.manga.ui;

import java.util.ArrayList;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.geekteam.manga.R;
import com.geekteam.manga.ui.fragment.MainTabFragment;
import com.geekteam.manga.ui.fragment.MangaFavoriteFragment;
import com.geekteam.manga.ui.fragment.MangaHotFragment;
import com.geekteam.manga.ui.fragment.MangaNewFragment;
import com.geekteam.manga.ui.fragment.MangaRecentFragment;

public class MainActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	protected String getFragmentTitle() {
		return getResources().getString(R.string.app_name);
	}

	@Override
	protected Fragment createFragment() {
		ArrayList<Fragment> listFragments = new ArrayList<Fragment>();
		listFragments.add(new MangaHotFragment());
		listFragments.add(new MangaNewFragment());
		listFragments.add(new MangaRecentFragment());
		listFragments.add(new MangaFavoriteFragment());
		Fragment fragment = new MainTabFragment(0, listFragments);
		return fragment;
	}

}
